package org.llc.gof.behavior.iterator.basic;

public class Client {
	
    private static Aggregate agg;
	private static Iterator iterator;
	
	public static void main(String[] args) {
		agg = new ConcreteAggregate();
		
		agg.add("abc");
		agg.add("aaa");
		agg.add("1234");
		
		iterator = agg.iterator();
		while(iterator.hasNext()){
			System.out.println(iterator.next());
		}
	}
}
